<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item  v-for="(item, index) in swiper" :key="index" >
        <img :src="item.picUrl" alt="">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  data() {
    return {
      swiper: []
    };
  },
  created() {
    this.$network.swiper({}).then(res => {
      this.swiper = res.data.data;
      // console.log(this.swiper)
    });
  }
};
</script>

<style scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  /* background-color: #39a9ed; */
}
img{
  width: 100%;
}
.my-swipe .van-swipe-item{
  line-height: 0;
  position: relative;
  top: 0;
}
</style>